package com.handpay.nocardpay.baselibrary.pay.unipay.model.bean;

import android.os.Parcel;
import android.os.Parcelable;

import com.handpay.nocardpay.baselibrary.commbase.model.bean.BaseResponseBean;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by lyang on 2017/9/13.
 */

public class MerchantTypeListBean extends BaseResponseBean implements Parcelable{

    /**
     * items : 1
     * list : [{"merchantTypeCode":"004E0D6F82FAB807","merchantTypeFee":"CB07DBCEF5FADEE6","merchantTypeFeeIncrement":"8AE86412A70DFABE","merchantTypeName":"1BB8CE4A9F313BA3633C997287306863"}]
     */

    private String items;
    private List<ListBean> list;

    public String getItems() {
        return items;
    }

    public void setItems(String items) {
        this.items = items;
    }

    public List<ListBean> getList() {
        return list;
    }

    public void setList(List<ListBean> list) {
        this.list = list;
    }

    public static class ListBean implements Parcelable{
        /**
         * merchantTypeCode : 004E0D6F82FAB807
         * merchantTypeFee : CB07DBCEF5FADEE6
         * merchantTypeFeeIncrement : 8AE86412A70DFABE
         * merchantTypeName : 1BB8CE4A9F313BA3633C997287306863
         */

        private String merchClassName;
        private String merchClassId;
        private String merchClassFeeRate;
        private String merchClassFeeIncrement;

        public String getMerchClassName() {
            return merchClassName;
        }

        public void setMerchClassName(String merchClassName) {
            this.merchClassName = merchClassName;
        }

        public String getMerchClassId() {
            return merchClassId;
        }

        public void setMerchClassId(String merchClassId) {
            this.merchClassId = merchClassId;
        }

        public String getMerchClassFeeRate() {
            return merchClassFeeRate;
        }

        public void setMerchClassFeeRate(String merchClassFeeRate) {
            this.merchClassFeeRate = merchClassFeeRate;
        }

        public String getMerchClassFeeIncrement() {
            return merchClassFeeIncrement;
        }

        public void setMerchClassFeeIncrement(String merchClassFeeIncrement) {
            this.merchClassFeeIncrement = merchClassFeeIncrement;
        }


        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeString(this.merchClassName);
            dest.writeString(this.merchClassId);
            dest.writeString(this.merchClassFeeRate);
            dest.writeString(this.merchClassFeeIncrement);
        }

        public ListBean() {
        }

        protected ListBean(Parcel in) {
            this.merchClassName = in.readString();
            this.merchClassId = in.readString();
            this.merchClassFeeRate = in.readString();
            this.merchClassFeeIncrement = in.readString();
        }

        public static final Creator<ListBean> CREATOR = new Creator<ListBean>() {
            @Override
            public ListBean createFromParcel(Parcel source) {
                return new ListBean(source);
            }

            @Override
            public ListBean[] newArray(int size) {
                return new ListBean[size];
            }
        };
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        super.writeToParcel(dest, flags);
        dest.writeString(this.items);
        dest.writeList(this.list);
    }

    public MerchantTypeListBean() {
    }

    protected MerchantTypeListBean(Parcel in) {
        super(in);
        this.items = in.readString();
        this.list = new ArrayList<ListBean>();
        in.readList(this.list, ListBean.class.getClassLoader());
    }

    public static final Creator<MerchantTypeListBean> CREATOR = new Creator<MerchantTypeListBean>() {
        @Override
        public MerchantTypeListBean createFromParcel(Parcel source) {
            return new MerchantTypeListBean(source);
        }

        @Override
        public MerchantTypeListBean[] newArray(int size) {
            return new MerchantTypeListBean[size];
        }
    };
}
